#{extends 'main.html' /}
#{set title:'Rezerviši Mi:: Rezervacija' /}
<h1>predmet rezervacije: ${objectLevelItem.name}, ${objectLevelItem.description}</h1>

<form action="@{Reservations.reserveObjectLevelItem(objectLevelItem.id)}" method="POST" id="reservationForm" accept-charset="utf-8">
    Created on:   <input type="text" name="createdOn" >    </br>
    Confirmed on: <input type="text" name="ConfirmedOn" /> </br>
    Canceled on:  <input type="text" name="canceledOn" />  </br>
    Comment:      <textarea rows="3" cols="30"></textarea> </br>
    Price:        <input type="text" name="price" />       </br>
    Reserved by:    <select name="reservedBy">
                        #{list items:users, as:'us'}
                        <option value=${us.id}>${us.fullname}</option>
                        #{/list}
                    </select> </br>

    Reserved to:    <select name="reservedTo">
                        #{list items:users, as:'us'}
                        <option value=${us.id}>${us.fullname}</option>
                        #{/list}
                    </select> </br>

    Events:       <select name="event">
                       #{list items:events, as:'ev'}
                       <option value=${ev.id}>${ev.name}</option>
                       #{/list}
                  </select> </br>

    <input type="submit" value="Submit" />   </br>

</form>